package com.zengqingfa.examples.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 动态列表
 * </p>
 *
 * @since 2022-11-03
 */
@Getter
@Setter
@TableName("dynamic_column")
public class DynamicColumn implements Serializable {

    private static final long serialVersionUID = -4028289392201083392L;

    @ApiModelProperty("主键")
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;

    @ApiModelProperty("创建人ID")
    @TableField(
            fill = FieldFill.INSERT
    )
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField(
            fill = FieldFill.INSERT
    )
    private LocalDateTime createTime;

    @ApiModelProperty("更新人ID")
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private LocalDateTime updateTime;

    @ApiModelProperty("是否已删除(0否1是)")
    @TableField(
            fill = FieldFill.INSERT
    )
    @TableLogic
    private Integer deleted;

    /**
     * 模块;1用户信息
     */
    private Integer module;

    /**
     * 列表信息
     */
    private String columnInfo;


}
